
public class PrintNameThread extends Thread {

	public PrintNameThread(String string) {
	
	
	super(string);
	start();
	}

	@Override
	public void run() {
		System.out.println("My name is " + getName());
		
	}
	
}